package toString;

public class Test {
    public static void main(String[] args) {
        Student student1 = new Student("张三",16,'男');
        Student student2 = new Student("张三",16,'女');
        System.out.println(student1.equals(student2));//默认比较地址
        System.out.println(student1.toString());
        System.out.println(student1==student2);
    }
}
